﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001327 RID: 4903
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeBpRewardCsReq : IMessage<TakeBpRewardCsReq>, IMessage, IEquatable<TakeBpRewardCsReq>, IDeepCloneable<TakeBpRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003DDA RID: 15834
		// (get) Token: 0x0600DB79 RID: 56185 RVA: 0x0024BDF9 File Offset: 0x00249FF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeBpRewardCsReq> Parser
		{
			get
			{
				return TakeBpRewardCsReq._parser;
			}
		}

		// Token: 0x17003DDB RID: 15835
		// (get) Token: 0x0600DB7A RID: 56186 RVA: 0x0024BE00 File Offset: 0x0024A000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeBpRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DDC RID: 15836
		// (get) Token: 0x0600DB7B RID: 56187 RVA: 0x0024BE12 File Offset: 0x0024A012
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeBpRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DB7C RID: 56188 RVA: 0x0024BE19 File Offset: 0x0024A019
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardCsReq()
		{
		}

		// Token: 0x0600DB7D RID: 56189 RVA: 0x0024BE21 File Offset: 0x0024A021
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardCsReq(TakeBpRewardCsReq other) : this()
		{
			this.level_ = other.level_;
			this.optionalRewardId_ = other.optionalRewardId_;
			this.type_ = other.type_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB7E RID: 56190 RVA: 0x0024BE5E File Offset: 0x0024A05E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardCsReq Clone()
		{
			return new TakeBpRewardCsReq(this);
		}

		// Token: 0x17003DDD RID: 15837
		// (get) Token: 0x0600DB7F RID: 56191 RVA: 0x0024BE66 File Offset: 0x0024A066
		// (set) Token: 0x0600DB80 RID: 56192 RVA: 0x0024BE6E File Offset: 0x0024A06E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003DDE RID: 15838
		// (get) Token: 0x0600DB81 RID: 56193 RVA: 0x0024BE77 File Offset: 0x0024A077
		// (set) Token: 0x0600DB82 RID: 56194 RVA: 0x0024BE7F File Offset: 0x0024A07F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionalRewardId
		{
			get
			{
				return this.optionalRewardId_;
			}
			set
			{
				this.optionalRewardId_ = value;
			}
		}

		// Token: 0x17003DDF RID: 15839
		// (get) Token: 0x0600DB83 RID: 56195 RVA: 0x0024BE88 File Offset: 0x0024A088
		// (set) Token: 0x0600DB84 RID: 56196 RVA: 0x0024BE90 File Offset: 0x0024A090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BpRewardType Type
		{
			get
			{
				return this.type_;
			}
			set
			{
				this.type_ = value;
			}
		}

		// Token: 0x0600DB85 RID: 56197 RVA: 0x0024BE99 File Offset: 0x0024A099
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeBpRewardCsReq);
		}

		// Token: 0x0600DB86 RID: 56198 RVA: 0x0024BEA8 File Offset: 0x0024A0A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeBpRewardCsReq other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.OptionalRewardId == other.OptionalRewardId && this.Type == other.Type && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB87 RID: 56199 RVA: 0x0024BF04 File Offset: 0x0024A104
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.OptionalRewardId != 0U)
			{
				num ^= this.OptionalRewardId.GetHashCode();
			}
			if (this.Type != BpRewardType.BpRewaradTypeNone)
			{
				num ^= this.Type.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB88 RID: 56200 RVA: 0x0024BF7B File Offset: 0x0024A17B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DB89 RID: 56201 RVA: 0x0024BF83 File Offset: 0x0024A183
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DB8A RID: 56202 RVA: 0x0024BF8C File Offset: 0x0024A18C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Type != BpRewardType.BpRewaradTypeNone)
			{
				output.WriteRawTag(32);
				output.WriteEnum((int)this.Type);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Level);
			}
			if (this.OptionalRewardId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.OptionalRewardId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DB8B RID: 56203 RVA: 0x0024C004 File Offset: 0x0024A204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.OptionalRewardId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionalRewardId);
			}
			if (this.Type != BpRewardType.BpRewaradTypeNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Type);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DB8C RID: 56204 RVA: 0x0024C074 File Offset: 0x0024A274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeBpRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.OptionalRewardId != 0U)
			{
				this.OptionalRewardId = other.OptionalRewardId;
			}
			if (other.Type != BpRewardType.BpRewaradTypeNone)
			{
				this.Type = other.Type;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DB8D RID: 56205 RVA: 0x0024C0D8 File Offset: 0x0024A2D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DB8E RID: 56206 RVA: 0x0024C0E4 File Offset: 0x0024A2E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 48U)
					{
						if (num != 72U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.OptionalRewardId = input.ReadUInt32();
						}
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.Type = (BpRewardType)input.ReadEnum();
				}
			}
		}

		// Token: 0x0400572F RID: 22319
		private static readonly MessageParser<TakeBpRewardCsReq> _parser = new MessageParser<TakeBpRewardCsReq>(() => new TakeBpRewardCsReq());

		// Token: 0x04005730 RID: 22320
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005731 RID: 22321
		public const int LevelFieldNumber = 6;

		// Token: 0x04005732 RID: 22322
		private uint level_;

		// Token: 0x04005733 RID: 22323
		public const int OptionalRewardIdFieldNumber = 9;

		// Token: 0x04005734 RID: 22324
		private uint optionalRewardId_;

		// Token: 0x04005735 RID: 22325
		public const int TypeFieldNumber = 4;

		// Token: 0x04005736 RID: 22326
		private BpRewardType type_;
	}
}
